//
//  DetailManagerCell.m
//  CarStore
//
//  Created by 千锋 on 16/1/27.
//  Copyright (c) 2016年 1000phone. All rights reserved.
//

#import "DetailManagerCell.h"
#import "ManagerModel.h"


@interface DetailManagerCell ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *danshuLabel;
@property (weak, nonatomic) IBOutlet UILabel *detailLabel;

@end

@implementation DetailManagerCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(ManagerModel *)model
{
    _nameLabel.text = model.name;
    _danshuLabel.text = model.deal_num;
    _detailLabel.text = model.brief;
}

- (IBAction)callBtnClicked:(UIButton *)sender {
    NSString * str=[[NSString alloc] initWithFormat:@"telprompt://%@",@"01065957177"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
}

- (IBAction)managerBtnClicked:(UIButton *)sender {
    PRINT;
}

@end
